use core::arch::asm;

pub fn read_cpuid_id() -> u32 {
    unsafe {
        let r: u64;
        asm!("mrs {}, midr_el1", out(reg) r, options(nomem, nostack, preserves_flags));
        r as u32
    }
}
